package Game;

public abstract class Item extends Card implements ITargetable {
	// CONSTANTS
	
	/**
	 * AP cost to transfer Item between Characters.
	 */
	public static final int ITEM_TRANSFER_AP = 2;
	
	public Item(String _ID) {
		super(_ID);
	}
	
	public void onObtain(Character character) {
		character.inventory.add(this);
	}
	
	public void onDiscard(Character character) {
		character.inventory.remove(this);
	}
	
	public void onTransfer(Character source, Character target) {
		onDiscard(source);
		
		source.incAP(-ITEM_TRANSFER_AP);
		
		onObtain(target);
	}
}
